<template>
	<view class="page">
		<!-- <view
			class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex agreement_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between agreement_fd0_0'>
				<view class='flex flex-wrap align-center agreement_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
					data-url="1">
					<text class='fu-iconfont2  testExamination_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<text class='agreement_fd0_0_c1' v-if="aid == 7">注册协议</text>
				<text class='agreement_fd0_0_c1' v-if="aid == 6">隐私政策</text>
				<view class='flex align-center justify-end agreement_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view> -->
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#FC5B03"></u-loading>
			<view>加载中</view>
		</view>
		<view class="ben_fu-jyf-parser_1" v-else>
			<u-parse :html="dataList.content"></u-parse>
		</view>

	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},

		data() {
			return {
				"isShow": true,
				"dataList": {
					"aid": "",
					"name": "",
					"content": "",
					"create_time": ""
				},
				"aid": 1, // value=1 >新手指引value=2 >押金告知value=3 >全城送车value=4 >特惠长租value=5 >租车协议告知value=6 >出行隐私告知value=7 >一键登录协议告知
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				aid
			} = options;
			if (aid !== undefined) this.aid = aid;
			let newTitle = "";
			if (this.aid == 1) {
				newTitle = '新手指引';
			} else if (this.aid == 2) {
				newTitle = '押金告知';
			} else if (this.aid == 3) {
				newTitle = '全城送车';
			} else if (this.aid == 4) {
				newTitle = '特惠长租';
			} else if (this.aid == 10) {
				newTitle = '关于我们';
			}
			uni.setNavigationBarTitle({
				title: newTitle
			});
			this.getgetDataList()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取用户注册协议
			async getgetDataList() {
				//请求方法
				//数据验证

				let dataListData = await this.$api.post(global.apiUrls.getProtocol, {
					type: this.aid
				});
				this.isShow = false;
				if (dataListData.data.code != 1) {
					this.$message.info(dataListData.data.info);
					return
				}
				let dataListinfo = dataListData.data;
				this.dataList = dataListinfo.data;
				console.log(this.dataList);
			}
		}
	};
</script>
<style lang="scss" scoped>
	.ben_fu-jyf-parser_1 {
		background-color: #fff;
		padding-left: 32rpx;
		padding-right: 32rpx;
		padding-top: 32rpx;
		padding-bottom: 32rpx;

	}

	.testExamination_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #111;
	}

	.agreement_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.agreement_fd0_0_c0 {
		width: 40rpx;
		height: 40rpx;
	}

	.agreement_fd0_0_c0_c0 {
		width: 18rpx;
		height: 32rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.agreement_fd0_0_c1 {
		font-size: 32rpx;
		font-weight: bold;
		color: #111111;
	}

	.agreement_fd0_0_c2 {
		width: 40rpx;
		height: 40rpx;
	}

	.agreement_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% !important;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.page {
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}
</style>